package com.atguigu05.method_more._04recursion.exer2;

/**
 * @author NoobMaster69  * @date 2024/5/28 0028 星期二 18:18
 */
public class Test {
    public static void main(String[] args) {
        Test test = new Test();
        System.out.println(test.Rabbit(24));
    }

    public int Rabbit(int n){
        if(n == 1){
            return 1;
        }else if(n == 2){
            return 1;
        }else {
            return Rabbit(n -1 ) + Rabbit(n - 2);
        }
    }
}
